<?php
require '../../packages/connect_database.php';
mysql_select_db("auction");
$query = mysql_query("SELECT * FROM setup");
$result = mysql_fetch_row($query);
$num = $result[0] . "<fenge>";
$query = mysql_query("SELECT COUNT(*) FROM auction");
$result = mysql_fetch_row($query);
$num .= $result[0] . "<fenge>";
$query_table = mysql_list_tables("auction");
$i = 0;
$creator = 0;
while($i < mysql_num_rows($query_table)) {
	$table[$i] = mysql_tablename($query_table, $i);
	if($table[$i] != "auction" && $table[$i] != "setup") {
		$query = mysql_query("SELECT COUNT(*) FROM " . $table[$i] . " WHERE creator = 1");
		$result = mysql_fetch_row($query);
		if($result[0] > 0)
			$creator++;
	}
	$i++;
}
$num .= $creator;
echo $num;
